import mitt, {Emitter} from 'mitt'
import {MenuView} from '@/store/nav'
import {RouterPushType} from '@/util/router'
type Events={
  //刷新页面
  viewRefresh:MenuView
  //路由重复导航事件
  routerDuplicated:RouterPushType|undefined
}
const emitter:Emitter<Events> = mitt<Events>()
export default emitter
